package com.farsoon;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.oas.annotations.EnableOpenApi;


// 如不添加此注释，则无法获取mapper对象和IService对象
@MapperScan("com.farsoon.*.dao")
// 开启事务管理
@EnableTransactionManagement
// 指定项目注释扫描基础包
@SpringBootApplication(scanBasePackages = "com.farsoon")
// 开启swagger3
@EnableOpenApi
// 开启定时任务
@EnableScheduling
public class childApplication {
    public static void main(String[] args) {
        System.out.println("I'm in child application");
        SpringApplication.run(childApplication.class, args);

    }
}
